import 'package:flutter/material.dart';
import 'package:flutter_fresh_mall_app/common/global/counter.dart';
import 'package:provider/provider.dart';

class HomePage extends StatefulWidget{
  @override
  State createState() => HomeState();
}

class HomeState extends State<HomePage>{

  @override
  Widget build(BuildContext context) {
     return new Scaffold(
       body: Center(
         child: Text('首页'+context.watch<Counter>().count.toString()),
       ),
     );
  }
}